const patchType = [
  {label:'中文补丁',value:'0'},
  {label:'英文补丁',value:'1'},
]

const patchLevel = [
  {label:'高危补丁',value:'3'},
  {label:'中危补丁',value:'2'},
  {label:'低危补丁',value:'1'},
  {label:'安全补丁',value:'0'},
]

const patchLevelMap = {
  '-1':'--',
  '0':'安全',
  '1':'低危',
  '2':'中危',
  '3':'高危'
}

const WindowType = [
  {label:'Windows 2008',value:'2008'},
  {label:'Windows 2012',value:'2012'},
  {label:'Windows 2016',value:'2016'},
  {label:'Windows 10',value:'10'},
  {label:'Windows 7',value:'7'},
  {label:'其他Windows',value:'-1'},
]

const CentosType = [
  {label:'Centos 8',value:'8'},
  {label:'Centos 7',value:'7'},
  {label:'Centos 6',value:'6'},
  {label:'Centos 5',value:'5'},
  {label:'其他Centos',value:'-1'},
]

const UbuntuType = [
  {label:'Ubuntu',value:'1'}
]

const OtherType = [
  {label:'其他Linux',value:'1'}
]

const SystermType = [
  ...WindowType,...CentosType,...UbuntuType,...OtherType
]

const TestMark = [
  {label:'测试主机',value:'1'},
  {label:'非测试主机',value:'0'},
]

const TestMarkMap = {
  '0':'×',
  '1':'√'
}

const AvalilableMark = [
  {label:'不可用',value:'0'},
  {label:'可用',value:'1'},
  {label:'未配置',value:'2'},
  {label:'异常',value:'-1'},
]

const OnOff = [
  {label:'开启',value:'1'},
  {label:'关闭',value:'0'},
]

const OnOffMap = {
  '0':'关闭',
  '1':'开启'
}

const TrueFalse = [
  {label:'是',value:'1'},
  {label:'否',value:'0'},
]

const TrueFalseMap = {
  '0':'是',
  '1':'否'
}

const Priority = [
  {label:'低',value:'0'},
  {label:'中',value:'1'},
  {label:'高',value:'2'},
]

const PriorityMap = {
  '0':'低',
  '1':'中',
  '2':'高',
}


const DangerLevel = [
  {label:'低',value:'0'},
  {label:'中',value:'1'},
  {label:'高',value:'2'},
]

const DangerLevelMap = {
  '0':'低',
  '1':'中',
  '2':'高',
}

const AvalilableMarkMap = {
  '0':'不可用',
  '1':'可用',
  '2':'未配置',
  '-1':'异常'
}

const Ostype = [
  {label:'windows',value:'1'},
  {label:'linux centos',value:'2'},
  {label:'linux ubuntu',value:'3'},
]

const OstypeMap = {
  '3':'linux ubuntu',
  '1':'windows',
  '2':'linux centos',
}

const PatchType = [
  {label:'操作系统',value:'0'},
  {label:'应用',value:'1'},
]

const PatchTypeMap = {
  '0':'操作系统',
  '1':'应用'
}

const MarkType = [
  {label:'已标记',value:'1'},
  {label:'未标记',value:'0'},
]

const MarkTypeMap = {
  '0':'×',
  '1':'√'
}
const FileType = [
  {label:'rpm',value:'1'},
  {label:'exe',value:'2'},
  {label:'xls',value:'3'},
  {label:'deb',value:'4'},
  {label:'pdf',value:'5'},
]
const FileTypeMap = {
  '1': 'rpm',
  '2': 'exe',
  '3': 'xls',
  '4': 'deb',
  '5': 'pdf',
}


const FileSource = [
  {label:'上级平台',value:'1'},
  {label:'厂家同步',value:'2'},
  {label:'本地上传',value:'3'},
]

const FileSourceMap = {
  '1': '上级平台',
  '2': '厂家同步',
  '3': '本地上传',
}

const PolicyType = [
  {label:'循环策略',value:'2'},
  {label:'一次性策略',value:'1'},
]

const PolicyType2 = [
  {label:'一次性策略',value:'1'},
]

const PolicyTypeMap = {
  '1': '一次性策略',
  '2': '循环策略',
}

const RestartType = [
  {label:'不重启',value:'0'},
  {label:'重启',value:'1'},
]

const WeekMap = {
  '1': '星期一',
  '2': '星期二',
  '3': '星期三',
  '4': '星期四',
  '5': '星期五',
  '6': '星期六',
  '7': '星期日',
}


const CoverType = [
  {label:'不覆盖',value:'0'},
  {label:'覆盖',value:'1'},
]

const EndPushAction = [
  {label:'不运行',value:'0'},
  {label:'运行',value:'1'},
]

const EndFileAction = [
  {label:'不处理',value:'0'},
  {label:'删除',value:'1'},
]

const UserType = [
  {label:'内置员工',value:'0'},
  {label:'内置用户',value:'1'},
]

export {
  patchType,
  patchLevel,
  WindowType,
  CentosType,
  UbuntuType,
  OtherType,
  SystermType,
  TestMark,
  AvalilableMark,
  patchLevelMap,
  AvalilableMarkMap,
  TestMarkMap,
  OnOff,
  OnOffMap,
  Priority,
  PriorityMap,
  DangerLevel,
  DangerLevelMap,
  Ostype,
  OstypeMap,
  PatchType,
  PatchTypeMap,
  MarkType,
  MarkTypeMap,
  TrueFalseMap,
  TrueFalse,
  FileType,
  FileSource,
  FileTypeMap,
  FileSourceMap,
  PolicyType,
  RestartType,
  PolicyTypeMap,
  WeekMap,
  PolicyType2,
  CoverType,
  EndPushAction,
  EndFileAction,
  UserType
}